﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Web.WebPages.OAuth;
using WebSiteFool.Models;
using WebSiteFool.Clients;

namespace WebSiteFool
{
    public static class AuthConfig
    {
        public static void RegisterAuth()
        {
            // To let users of this site log in using their accounts from other sites such as Microsoft, Facebook, and Twitter,
            // you must update this site. For more information visit http://go.microsoft.com/fwlink/?LinkID=252166

            OAuthWebSecurity.RegisterMicrosoftClient(
                clientId: "00000000440EA286",
                clientSecret: "zZjs8-VNEDZZ5wYHgooxtG8BLuy3cgOS");

            OAuthWebSecurity.RegisterTwitterClient(
                consumerKey: "eQprGc11WXKa2Ns7UAIag",
                consumerSecret: "3sw0MR1DMQzTG8k9p5cYSCaUUHpudeQlJf3ufKXB1M");

            OAuthWebSecurity.RegisterFacebookClient(
                appId: "232292866909881",
                appSecret: "a941504d20a2322e78be31f454a3fd7b");

            OAuthWebSecurity.RegisterGoogleClient();
            OAuthWebSecurity.RegisterClient(
                new SinaClient(appId: "1910832667",
                appSecret: "4b2cde285d6d18a1f4f679c66005847c"));
        }
    }
}
